import java.util.ArrayList;
import java.util.List;

public class StudentService {
    private TagComponent tagComponent;
    public List<Student> queryList() {

        // 1、假设这里查到数据
        List<Student>  resultList = new ArrayList<>();
        // 2、对数据景先处理
        tagComponent.bindTags(resultList,1,each -> each.getId(),(each,tags) -> each.setTags(tags));
        return resultList;
    }
}